//检查表单的数据里是否有null值或空值,false为有null值，true为无
function FormCheck(data){
    const keys = Object.keys(data)
    for (let i = 0; i < keys.length; i++) {
        const key = keys[i]
        let value = data[key]
        if (value == null || value == '') {
            return false;
        }
    }
    return true;
}

export default FormCheck
